﻿
%page inherit Index;
%page route "documentation";

%using System;
%using NetFluid;
%using MongoDB.Driver.Builders;

%override Body
<div class="content" style="background-color:{%rand_color()%};">
    <h1>Documentation</h1>
    <div>
        <ul style="text-align:left">
            %foreach(var news in Database.News.Find(Query.EQ("Category","Documentation")))
            <li>
                <a href="{%news.Link.UrlEncode()%}"><h2>{%news.Title%}</h2></a>
            </li>
            %end foreach
        </ul>
    </div>
</div>

%end override 